﻿#ifndef READONLYDELEGATE_H
#define READONLYDELEGATE_H
#include <QWidget>
#include <QItemDelegate>

class ReadOnlyDelegate :public QItemDelegate
{

public:
    ReadOnlyDelegate(QWidget *parent = NULL):QItemDelegate(parent)
    {}

    QWidget *createEditor(QWidget *parent, const QStyleOptionViewItem &option,
const QModelIndex &index) const override //final
    {
        Q_UNUSED(parent);
        Q_UNUSED(option);
        Q_UNUSED(index);
        return NULL;
    }
};
#endif // READONLYDELEGATE_H
